﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jzy.BLL.Desktop;
using Jzy.Model.Desktop;
using Frame.Lib.Common;


namespace Jzy.Web.Desktop
{
    public partial class Default : PageBase
    {
        private DesktopBO Desktop
        {
            get
            {
                return DesktopBO.Instance<DesktopBO>();
            }
        }

        /// <summary>
        /// 初始化的模块及界面，提供给页面用的
        /// </summary>
        protected string Modules
        {
            get;
            set;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DesktopInfo info = this.Desktop.GetInfo(AppSession.UserID);
                this.Modules = info.Modules;
            }
        }
    }
}
